#include "GenRoadOperator.h"
#include "DlgGenRoad.h"

CGenRoadOperator::CGenRoadOperator(HDiMineView* view,IDMAddIn* addin)
:CAddInBaseOperator(view,addin)
{
}

CGenRoadOperator::~CGenRoadOperator(void)
{
}
int CGenRoadOperator::Init()
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())
	if(!CAddInBaseOperator::Init()) return 0;
	CGenRoadDialog* genRoad=new CGenRoadDialog;

	BEGIN_VALIDATE
	VALIDATE(genRoad->DoModal()==1)

	EXIT_VALIDATE
	if(genRoad) delete genRoad;
	RETURN_VALIDATE_RESULT
}